define(["jquery","utils","HeatMapMouseArea","HeatPoint"], function($,utils, HeatMapMouseArea,HeatPoint){
    
    function HeatMapMouseClickArea(obj) {
        // private stuff
        HeatMapMouseArea.call(this,obj);
    };

    //erste den Prototyepen mit dem Parent überschreiben
    var _super = utils.extend(HeatMapMouseClickArea,HeatMapMouseArea);

    //anschließend den  Prototypen der Klasse erweitern
    $.extend(HeatMapMouseClickArea.prototype, {
            
         initInputCaptureAbility :function(){
            var t = this;
            t.domObj.onclick  = function(ev){
                if (utils.stopanalyse) return;
                var pos = h337.util.mousePosition(ev);
                var realPos = utils.calcMousePostion(ev.target,this,pos);
                t.heatPointList.push(new HeatPoint(realPos.x,realPos.y));

            };
            $(t.domObj).click  = function(ev){
                if (utils.stopanalyse) return;
                var pos = h337.util.mousePosition(ev);
                var realPos = utils.calcMousePostion(ev.target,this,pos);
                t.heatPointList.push(new HeatPoint(realPos.x,realPos.y));

            };
        },
    });
    return HeatMapMouseClickArea;
});